package com.hkbigdata.cryd.java.ai.langchain4j.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

@AiService(wiringMode = EXPLICIT,
//        chatModel = "qwenChatModel",
        chatMemoryProvider = "chatMemoryProviderXiaosang",
        tools = "appointmentTools",
        streamingChatModel = "qwenStreamingChatModel"
)
public interface XiaosangAgent {
    @SystemMessage(fromResource = "xiaosang-prompt-template.txt")
    Flux<String> chat(@MemoryId String memoryId, @UserMessage String Usermessage);

}
